package student;

public class Student {
    private String name;
    private String sNo;
    private double Score;

    public Student() {
    }

    public Student(String name, String sNo, double score) {
        this.name = name;
        this.sNo = sNo;
        Score = score;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getsNo() {
        return sNo;
    }

    public void setsNo(String sNo) {
        this.sNo = sNo;
    }

    public double getScore() {
        return Score;
    }

    public void setScore(double score) {
        Score = score;
    }

    @Override
    public String toString() {
        return
                "姓名：'" + name + '\'' +
                ", 学号：'" + sNo + '\'' +
                ", 成绩：" + Score
                ;
    }

    /*@Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", sNo='" + sNo + '\'' +
                ", Score=" + Score +
                '}';
    }*/
}
